import axios from "../utils/request.js"
export default {
    findUserName(data={}){
        return axios({
            url: "/api/users/findUserName",
            method: "POST",
            data: data
        })
    },

    register(data={}){
        return axios({
            url: "/api/users/register",
            method: "POST",
            data: data
        })
    },
	
	login(data={}){
	    return axios({
	        url: "/api/users/login",
	        method: "POST",
	        data: data
	    })
	},
	
	getShoppingCart(data={}){
	    return axios({
	        url: "/api/user/shoppingCart/getShoppingCart",
	        method: "POST",
	        data: data
	    })
	},
}
